﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Master/OutSite.Master" CodeBehind="ProductList.aspx.vb" Inherits="Core.ListProduct" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<!-- BEGIN BOX PRODUCT -->
<script>
    function addCart(id, name, img, price) {
        $.ajax({
            url: "/ajaxSendCart.aspx?id=" + id + "&name=" + name + "&img=" + img + "&price=" + price,
            context: document.body,
            success: function (data) {
                $().toastmessage('showSuccessToast', "Đã thêm sản phẩm vào giỏ hàng!");
            }
        });
    }
</script>
<div class="boxPro">
	<div class="boxNew_header" id="divCateName" runat="server"></div>
    <asp:Repeater ID="RepeatItems" runat="server">
        <HeaderTemplate>
            <ul class="boxPro_ul">
        </HeaderTemplate>
        <ItemTemplate>
                <li>
			        <div class="boxPro_img">
				        <a href="<%#buildLinkDetailPro(Eval("cateURI"), Eval("itemURI"), Eval("ProID"))%>" title="<%# Eval("ProName") %>"><img src='<%#buildImage(Eval("ProDate"), Eval("ProImage2"))%>' alt='<%# Eval("ProName") %>'></a>
			        </div>
			        <table class="boxProInfo">
				        <tr>
					        <td><a class="boxPro_title tdTitle" href='<%#buildLinkDetailPro(Eval("cateURI"), Eval("itemURI"), Eval("ProID"))%>' title='<%# Eval("ProName") %>'><%# Eval("ProName") %></a></td>
					        <td rowspan="2">
                                <asp:Literal ID="btnAjax" runat="server" Text='<%#buildButtonAjax(Eval("ProID"), Eval("ProName"), Eval("ProDate"), Eval("ProImage2"), Eval("ProNewPrice"), Eval("ProIsStock"))%>'></asp:Literal>
                            </td>
				        </tr>
				        <tr>
					        <td class="boxPrice">Giá: <span class="boxProPrice"><%# formatVND(Eval("ProNewPrice"))%> VND</span></td>
				        </tr>
			        </table>
		        </li>
        </ItemTemplate>
        <FooterTemplate>
                </ul>         
        </FooterTemplate>
    </asp:Repeater>

	<div class="wrapNavigator" id="divNavigator" runat="server">
	</div>
</div>
<!-- END ALL BOX -->
</asp:Content>

